import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastMsg {
  ToastMsg.show(Object msg) {
    if(msg!=null&&msg.toString().isNotEmpty){
      Fluttertoast.showToast(
        msg: msg.toString(),
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.black,
        textColor: Colors.white,
        fontSize: 16.0,
      );
    }
  }
  ToastMsg.showLoading(){

  }
  ToastMsg.cancelLoading(){

  }
}
